import axios from "axios";
const request = axios.create({
  timeout: 5000,
  baseURL: "http://121.89.205.189:3000/api",
  headers: {  // 请求头
        
  }
});
request.interceptors.response.use((res)=>{
    return res.data
})
request.interceptors.request.use((res:any)=>{
  res.headers.token = localStorage.getItem("userToken");
  return res
})
export default request;
